
 public class Date {
	private int year;
    private int  mounth;
    private int  data;
    public Date(){}
    public Date(int  year,int  mounth,int  data){
    	this.year=year;
    	this.mounth=mounth;
    	this.data=data;
    }
    public void setYear(int  year){
    	this.year=year;
    }
    public int  getYear(){
    	return year;
    }
    public void setMounth(int  mounth){
    	this.mounth=mounth;
    }
    public int  getMounth(){
    	return mounth;
    }
    public void setData(int  data){
    	this.data=data;
    }
    public int  getData(){
    	return data;
    }
    public String toString(){
    	return this.year +"-"+ this.mounth +"-"+ this.data +"\t";
    }
}
 
 